package cn.bjxy.shishaolong.system.entity;

import cn.bjxy.shishaolong.common.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户本地认证
 * </p>
 *
 * @author 时少龙
 * @since 2020-07-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_user_third_authen")
public class UserThirdAuthen extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 类型：微博、qq、微信
     */
    @TableField("outh_type")
    private String outhType;

    /**
     * 用户唯一标识
     */
    @TableField("openid")
    private String openid;

    /**
     * 会话秘钥
     */
    @TableField("session_key")
    private String sessionKey;

    /**
     * 开放平台唯一标识
     */
    @TableField("unionid")
    private String unionid;

    /**
     * 访问凭证
     */
    @TableField("access_token")
    private String accessToken;

    /**
     * 凭证有效期
     */
    @TableField("expires_in")
    private Integer expiresIn;
}
